import 'package:flutter/material.dart';

///
class TableMainDemo extends StatefulWidget {
  const TableMainDemo({Key? key}) : super(key: key);

  @override
  _TableMainDemoState createState() => _TableMainDemoState();
}

class _TableMainDemoState extends State<TableMainDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("表格演示和卡片"),
        centerTitle: true,
      ),
      body: Column(
        children: [
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, "table1");
              },
              child: Text("表格演示1")),
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, "table2");
              },
              child: Text("表格演示2")),
          ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, "card");
              },
              child: Text("卡片视图"))
        ],
      ),
    );
  }
}
